import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:search_people/utils/util.dart';

import '../../../../../utils/component/component.dart';

class FindBackSuccessPage extends StatelessWidget {
  const FindBackSuccessPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: presentAppBar(context),
        backgroundColor: Colors.white,
        body: Padding(
          padding: EdgeInsets.symmetric(horizontal: 31.w),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              SizedBox(
                height: 51.w,
              ),
              Image.asset(
                'icon_success.png'.imgPathMe,
                width: 130.w,
                height: 126.w,
              ),
              SizedBox(
                height: 27.w,
              ),
              Text(
                '密码找回成功',
                style: TextStyle(
                  color: const Color(0xff333333),
                  fontSize: 17.sp,
                  fontWeight: FontWeight.bold,
                ),
              ),
              SizedBox(
                height: 10.r,
              ),
              Text(
                '密码已成功找回，快去登录试试吧~',
                style:
                    TextStyle(color: const Color(0xff999999), fontSize: 14.sp),
              ),
              SizedBox(
                height: 73.w,
              ),
              ExpandedButton(
                text: '返回登录',
                onPressed: () {
                  Get.offNamedUntil(RouterPath.login, (route) => true);
                },
              )
            ],
          ),
        ));
  }
}
